<?php echo form_open('users/updateDataUser'); ?>       <?php foreach($mydata as $row) {?>
   <input name="id" type="hidden" required="required" class="" value="<?php echo $row['id'] ?>" id="" size="30"/>
  <table class="ssssss" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="32%">&nbsp;</td>
      <td width="44%">&nbsp;</td>
      <td width="24%">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="center" valign="middle">

      <table width="27%" border="0" align="center" cellpadding="0" cellspacing="0" class="">
        <tr>
          <th height="28" colspan="2" align="center" valign="middle">ข้อมูลผู้ใช้</th>
        </tr>
 
        <tr>
          <td width="28%" height="28" align="right" nowrap="nowrap">ชื่อผู้ใช้ :</td>
          <td width="72%"><?php echo $row['username'] ?></td>
        </tr>
        <tr>
          <td height="28" align="right" nowrap="nowrap">ชื่อ :</td>
          <td><input name="name" type="text" required="required" class="" value="<?php echo $row['name'] ?>" id="" size="30"/></td>
        </tr>
        <tr>
          <td height="28" align="right" nowrap="nowrap">นามสกุล :</td>
          <td><input name="lastname" type="text" required="required" class="" value="<?php echo $row['lastname'] ?>" id="" size="30"/></td>
        </tr>
           
        <tr>
          <td height="28" colspan="2" align="right"><center><input type="submit"  class="" value="บันทึก"/><input type="reset" value="ยกเลิก" >
          </center></td>
        </tr>
      </table>
      <span style="text-align: center"></span>  <?php }?>
    </form>
<p style="text-align: center">&nbsp;</p>      